<% @relationship.notes.sort_by(&:created_at).each do |note| %>
	<div>
		<hr>
		<div><%= note.created_at.strftime('%m/%d/%Y') rescue nil %> <b><%= note.note_type.name rescue nil %></b></div>
		<div id="message-black">
			<%= note.text %>
		</div>
		<div style="float:none;clear:both;">
			<span style="float:right;">
				<%= link_to_remote('edit', :url => {:action => 'edit_note', :id => note, :relationship => @relationship}) %>
			</span>
		</div>
	</div><br>
<% end %>